import Vue from 'vue'
// import './cube-ui'
import App from './App.vue'
import router from './router'
import store from './store'


import $ from 'jquery'
import 'bootstrap/dist/css/bootstrap.min.css'
import "bootstrap/dist/js/bootstrap.bundle";
import '@fortawesome/fontawesome-free/js/all.js'
//定义全局变量
// Vue.prototype.$_http = axios
// Vue.prototype.$http = axios.instance;

//Mock
import '@/Mock'
// 添加全局组件
import components from '@/components';
// 添加全局mixin
import mixin from '@/mixin'
Vue.mixin(mixin);
import api from './api'
Vue.use(api)

import '@/Vant'
import './registerServiceWorker'

// Vue.p
// console.log(Vue.prototype)

Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')



router.beforeEach((to, from, next) => {
  console.log(to, from);
  next();
})

